fix(ci): skip scheduled workflows on forks#16497
fix(ci): skip scheduled workflows on forks#16497Chesars wants to merge 1 commit intoanomalyco:devfrom
Conversation
Add `if: github.repository == 'anomalyco/opencode'` guard to scheduled workflows that run unnecessarily on forks, wasting CI minutes and generating noisy email notifications. Also fixes docs-update.yml which had an incorrect repo reference (`sst/opencode` instead of `anomalyco/opencode`).
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Found a potentially related PR: PR #14672: chore: add repository guard to workflows
This could be a duplicate or related work that should be reviewed to ensure there's no overlap or that the earlier work was not sufficient/complete. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Issue for this PR
Closes #
Type of change
What does this PR do?
Scheduled workflows (cron-triggered) run on forks, wasting CI minutes and generating noisy email notifications for fork owners. This adds a
if: github.repository == 'anomalyco/opencode'guard to 6 scheduled workflows that were missing it:beta.yml(hourly)close-stale-prs.yml(daily)compliance-close.yml(every 30 min)daily-issues-recap.yml(daily)daily-pr-recap.yml(daily)stale-issues.yml(daily)Also fixes
docs-update.ymlwhich had an incorrect repo reference (sst/opencode→anomalyco/opencode).stats.ymlalready had the correct guard.How did you verify your code works?
Verified the YAML syntax is correct and the
ifcondition is placed at the job level. This is the standard GitHub Actions pattern to prevent scheduled workflows from running on forks.Screenshots / recordings
N/A - CI config change only.
Checklist